import HomeCompo from "@/components/page/HomeAbout";
import NewsCompo from "@/components/page/NewsAbout";
import SportCompo from "@/components/page/SportsAbout";
import VueRouter from "vue-router";
import OtherCompo from "@/components/page/OtherAbout";

export default new VueRouter({
    routes: [
        {
            path: "/home",
            component: HomeCompo,
            children: [
                {
                    path: "news",
                    component: NewsCompo
                },
                {
                    path: "sport",
                    component: SportCompo
                }
            ]
        },
        {
            path: "/other",
            component: OtherCompo,
            children: [
                {
                    path: "news",
                    component: NewsCompo
                },
                {
                    path: "sport",
                    component: SportCompo
                }
            ]
        }
    ]
})